﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OOAD_PROJEKAT
{
    public class zahtjevPolice
    {
        public int Id;
        public int IdZaposlenika { get; set; }
        public int Kolicina;
        public bool Odobrena;


        public override string ToString()
        {
            return Id.ToString() +  " Zaposlenik: " + IdZaposlenika + ", kolicina: " + Kolicina + " ,odobrena: " + Odobrena.ToString();
        }

       

        public zahtjevPolice(int _Id, int _IdZaposlenika, int _Kolicina, bool _Odobrena = false)
        {
            Id = _Id;
            IdZaposlenika = _IdZaposlenika;
            Kolicina = _Kolicina;
            Odobrena = _Odobrena;
        }

        public zahtjevPolice(int _IdZaposlenika, int _Kolicina, bool _Odobrena = false)
        {
            Id = 0;
            IdZaposlenika = _IdZaposlenika;
            Kolicina = _Kolicina;
            Odobrena = _Odobrena;
        }


    }
}
